package com.cskaoyan.exception;

import com.cskaoyan.bean.BaseRespVo;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;
import org.apache.shiro.authz.AuthorizationException;

/**
 * 类<code>Doc</code>用于：TODO
 *
 * @author Acher
 * @version 1.0
 * @date 2021-10-22
 */
@RestControllerAdvice
public class PermissionExceptionControllerAdvice {

    @ExceptionHandler(AuthorizationException.class)
    public BaseRespVo authorizationException() {
        return BaseRespVo.permissionError();
    }
}
